import http from '.'
/**
 * 查询支付渠道
 */
export function queryPaymentParam(params) {
  return http.get(
    'api/v1/trade/paymentParam/query?' + Form(params).queryString()
  )
}
/**
 * 支付渠道详情
 */
export function queryPaymentParamDetail(rowId) {
  return http.get('api/v1/trade/paymentParam/detail?rowId=' + rowId)
}
/**
 * 删除支付渠道
 */
export function deletePaymentParam(rowId) {
  return http.post('api/v1/trade/paymentParam/delete?rowId=' + rowId)
}
/**
 * 保存支付渠道
 */
export function savePaymentParam(params) {
  return http.post(
    `api/v1/trade/paymentParam/${params.rowId ? 'edit' : 'add'}`,
    Form(params)
  )
}
/**
 * 查询交易记录
 */
export function queryBusiVoucher(params) {
  return http.get(
    'api/v1/trade/busiVoucher/query?' + Form(params).queryString()
  )
}
export function queryBusiVoucherDetail(rowId) {
  return http.get(
    'api/v1/trade/busiVoucher/selectBusiVoucherDetail?rowId=' + rowId
  )
}
